Skip to content

[Bottom Sheet] Add prioritizesSheetPanWhenCollapsed property#2252

Merged
lukas-cap merged 1 commit intomainfrom
user/lucapkov/bottom-sheet-prioritizes-pan-collapsed
Mar 18, 2026
Merged

[Bottom Sheet] Add prioritizesSheetPanWhenCollapsed property#2252
lukas-cap merged 1 commit intomainfrom
user/lucapkov/bottom-sheet-prioritizes-pan-collapsed

Conversation

@lukas-cap
Copy link
Contributor

@lukas-cap lukas-cap commented Mar 17, 2026

When enabled, the sheet's pan gesture takes priority over all content gestures while collapsed. Content gestures are deferred until the sheet pan fails (e.g. horizontal swipe or tap). This enables scroll blocking for SwiftUI content where hostedScrollView cannot be provided.

Platforms Impacted

  • iOS
  • visionOS
  • macOS

Description of changes

(a summary of the changes made, often organized by file)

Binary change

(how is our binary size impacted -- see https://github.com/microsoft/fluentui-apple/wiki/Size-Comparison)

Verification

(how the change was tested, including both manual and automated tests)

Visual Verification
Before After
Screenshot or description before this change Screenshot or description with this change

Pull request checklist

This PR has considered:

  • Light and Dark appearances
  • iOS supported versions (all major versions greater than or equal current target deployment version)
  • VoiceOver and Keyboard Accessibility
  • Internationalization and Right to Left layouts
  • Different resolutions (1x, 2x, 3x)
  • Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
  • iPad Pointer interaction
  • SwiftUI consumption (validation or new demo scenarios needed)
  • Objective-C exposure (provide it only if needed)
Microsoft Reviewers: Open in CodeFlow

When enabled, the sheet's pan gesture takes priority over all content
gestures while collapsed. Content gestures are deferred until the sheet
pan fails (e.g. horizontal swipe or tap). This enables scroll blocking
for SwiftUI content where hostedScrollView cannot be provided.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@lukas-cap lukas-cap requested a review from a team as a code owner March 17, 2026 21:42
@lukas-cap lukas-cap merged commit 6df752c into main Mar 18, 2026
10 checks passed
@lukas-cap lukas-cap deleted the user/lucapkov/bottom-sheet-prioritizes-pan-collapsed branch March 18, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants